import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../views/HomePage.vue';
// 假设各功能页组件（需自行创建对应.vue文件）
import TextGeneration from '../views/TextGeneration.vue';
import VoiceGeneration from '../views/VoiceGeneration.vue';
import TextSummary from '../views/TextSummary.vue';
import MusicGeneration from '../views/MusicGeneration.vue';
import EmotionAnalysis from '../views/EmotionAnalysis.vue';
import VideoEditing from '../views/VideoEditing.vue';
import Ocr from '../views/Ocr.vue';
import TextToImage from '../views/TextToImage.vue';
import RemoveWatermark from '../views/RemoveWatermark.vue';
import UseGuide from '../views/UseGuide.vue';


const routes = [
  {
    path: '/',
    name: 'Home',
    component: HomePage,
  },
  {
    path: '/text-generation',
    name: 'TextGeneration',
    component: TextGeneration,
  },
  {
    path: '/voice-generation',
    name: 'VoiceGeneration',
    component: VoiceGeneration,
  },
  {
    path: '/text-summary',
    name: 'TextSummary',
    component: TextSummary,
  },
  {
    path: '/music-generation',
    name: 'MusicGeneration',
    component: MusicGeneration,
  },
  {
    path: '/emotion-analysis',
    name: 'EmotionAnalysis',
    component: EmotionAnalysis,
  },
  {
    path: '/video-editing',
    name: 'VideoEditing',
    component: VideoEditing,
  },
  {
    path: '/ocr',
    name: 'Ocr',
    component: Ocr,
  },
  {
    path: '/text-to-image',
    name: 'TextToImage',
    component: TextToImage,
  },
  {
    path: '/remove-watermark',
    name: 'RemoveWatermark',
    component: RemoveWatermark,
  },
  {
    path: '/use-guide',
    name: 'UseGuide',
    component: UseGuide,
  },
];


const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
